<?php
/**
 * Created by JetBrains PhpStorm.
 * User: akrug
 * Date: 12.01.12
 * Time: 11:22
 * To change this template use File | Settings | File Templates.
 */
class Zend_View_Helper_ErrorHelper extends Zend_View_Helper_FormErrors{
    public function ErrorHelper($element){
        $html = false;

        if($element->hasErrors()){
            $html = $this->formErrors($element->getMessages());
        }

        return $html;
    }
}